import request from '@/utils/request'

const API = '/user/hosp/schedule'

export default {
  getSchedulePage(hoscode, depcode, page, limit) {
    return request({
      url: `${API}/${hoscode}/${depcode}/${page}/${limit}`,
      method: 'get'
    })
  },
  getScheduleDetail(hoscode, depcode, workDate) {
    return request({
      url: `${API}/${hoscode}/${depcode}/${workDate}`,
      method: 'get'
    })
  },
  getScheduleInfo(scheduleId){
    return request({
      url: `${API}/info/${scheduleId}`,
      method: 'get'
    })
  }
}
